package com.demo.service.hmi.impl;

import com.demo.dao.hmi.mapper.HmiComponentTypeTreeVOMapper;
import com.demo.dao.hmi.mapper.HmiDictionaryTypeTreeVOMapper;
import com.demo.dao.hmi.model.HmiComponentTypeTreeItemVO;
import com.demo.dao.hmi.model.HmiDictionaryTypeTreeItemVO;
import com.demo.service.hmi.HmiBasicVOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HmiBasicVOServiceImpl implements HmiBasicVOService {
    @Autowired
    private HmiDictionaryTypeTreeVOMapper dictionaryTypeVOMapper;

    @Autowired
    private HmiComponentTypeTreeVOMapper componentTypeTreeVOMapper;

    //******************************************************************
    // 字典分类树查询
    //******************************************************************
    public List<HmiDictionaryTypeTreeItemVO> getDictionaryTypeVOTree() {
        return dictionaryTypeVOMapper.getDictionaryTypeVOTree();
    }


    //******************************************************************
    // 组件分类树查询
    //******************************************************************
    public List<HmiComponentTypeTreeItemVO> getComponentTypeVOTree() {
        return componentTypeTreeVOMapper.getComponentTypeVOTree();
    }
}
